package xxdsqljobDB

/**
 * Created by Administrator on 2019-07-03.
 */
class ResultModel {
    public static final int CODE_0 = 0
    public static final String MSG_0 = "成功"

    public static final int CODE_300 = 300
    public static final String MSG_300 = "获取数据异常"

    public static final int CODE_400 = 400
    public static final String MSG_400 = "操作异常"

    public static final int CODE_401 = 401
    public static final String MSG_401 = "数据不存在"

    public static final int CODE_402 = 402
    public static final String MSG_402 = "违反唯一性"

    public static final String CODE = "code"
    public static final String MSG = "msg"
    public static final String DATA = "data"
    public static final String COUNT = "count"

    static Map resultModel(){
        def map = new HashMap()
        map.put(this.CODE,this.CODE_0)
        map.put(this.MSG,this.MSG_0)
        map.put(this.DATA,null)
        map.put(this.COUNT,0)
        return map
    }
}
